package com.myway.dao;


import com.myway.dto.vo.FlyPnrVo;
import com.myway.pojo.FlyPnr;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlyPnrMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FlyPnr record);

    int insertSelective(FlyPnr record);

    FlyPnr selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FlyPnr record);

    int updateByPrimaryKey(FlyPnr record);
    //订单查询所有PNR
    List<FlyPnrVo> findAllPnrByOrderID(Long orderId);
    //订单ID及旅客类型查询PNR
    List<FlyPnrVo> findPnrByOrderIDAndPassengerType(@Param("orderId") Long orderId, @Param("passengerType")String passengerType);
    //根据订单id查询pnr
    List<FlyPnr> getPnrOrderId(String orderId);
}